package development.bean;

import state.GameImage;
import development.Constants;

public class User {
  private String name = "";
  private int gold;
  private int money;
  private String passwordMd5 = "";
  private boolean isReady = false;
  private String avatarId;
  private int level;
  private int providerId = Constants.DEFAULT_PROVIDER_ID;
  private int experience;
  
  private String gender = "0"; // 0: Male, 1: Female
  private String mobile = "";
  private String fullName = "";
  private String birthDay = "";
  private String birthMonth = "";
  private String birthYear = "";
  private String email = "";
  private String address = "";
  private String status = "";
  
  private int soTranThang;
  private int soTranThua;
  private int tongSoTran;
  private int nextLevelExp;
  private boolean isViewUser;
  
  private int groupId;
  private boolean isGroupMaster;
  private int score;
  
  private GameImage avatarGroup;

  public Entity entity;

  public User() {
  }

  public User(String name1) {
    this.name = name1;
  }

  public void setName(String name1) {
    this.name = name1;
  }

  public String getName() {
    return name;
  }

  public String getPasswordMd5() {
    return passwordMd5;
  }

  public void setPasswordMd5(String passwordMd51) {
    this.passwordMd5 = passwordMd51;
  }

  public boolean isReady() {
    return isReady;
  }

  public void setReady(boolean isReady1) {
    this.isReady = isReady1;
  }
  
  public int getMoney() {
    return money;
  }
  
  public void setMoney(int money1) {
    this.money = money1;
  }

  public int getGold() {
    return gold;
  }

  public void setGold(int gold1) {
    this.gold = gold1;
  }

  public String getAvatarId() {
    return avatarId;
  }

  public void setAvatarId(String avatarId1) {
    this.avatarId = avatarId1;
  }
  
  public int getLevel() {
    return level;
  }

  public void setLevel(int level1) {
    this.level = level1;
  }
  
  public String getGender() {
    return gender;
  }

  public void setGender(String gender1) {
    this.gender = gender1;
  }

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile1) {
    this.mobile = mobile1;
  }

  public String getFullName() {
    return fullName;
  }

  public void setFullName(String fullName1) {
    this.fullName = fullName1;
  }

  public String getBirthDay() {
    return birthDay;
  }

  public void setBirthDay(String birthDay1) {
    this.birthDay = birthDay1;
  }

  public String getBirthMonth() {
    return birthMonth;
  }

  public void setBirthMonth(String birthMonth1) {
    this.birthMonth = birthMonth1;
  }

  public String getBirthYear() {
    return birthYear;
  }

  public void setBirthYear(String birthYear1) {
    this.birthYear = birthYear1;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email1) {
    this.email = email1;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address1) {
    this.address = address1;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status1) {
    this.status = status1;
  }
  
  public int getProviderId() {
    return providerId;
  }

  public void setProviderId(int providerId1) {
    this.providerId = providerId1;
  }
  
  public int getExperience() {
    return experience;
  }

  public void setExperience(int experience1) {
    this.experience = experience1;
  }
  
  public int getSoTranThang() {
    return soTranThang;
  }

  public void setSoTranThang(int soTranThang1) {
    this.soTranThang = soTranThang1;
  }

  public int getSoTranThua() {
    return soTranThua;
  }

  public void setSoTranThua(int soTranThua1) {
    this.soTranThua = soTranThua1;
  }

  public int getTongSoTran() {
    return tongSoTran;
  }

  public void setTongSoTran(int tongSoTran1) {
    this.tongSoTran = tongSoTran1;
  }
  
  public int getNextLevelExp() {
    return nextLevelExp;
  }

  public void setNextLevelExp(int nextLevelExp1) {
    this.nextLevelExp = nextLevelExp1;
  }
  
  public void setViewUser(boolean isViewUser1) {
    this.isViewUser = isViewUser1;
  }
  
  public boolean isViewUser() {
    return isViewUser;
  }
  
  public int getGroupId() {
    return groupId;
  }

  public void setGroupId(int groupId1) {
    this.groupId = groupId1;
  }

  public boolean isGroupMaster() {
    return isGroupMaster;
  }

  public void setGroupMaster(boolean isGroupMaster1) {
    this.isGroupMaster = isGroupMaster1;
  }

  public int getScore() {
    return score;
  }

  public void setScore(int score1) {
    this.score = score1;
  }
  
  public GameImage getAvatarGroup() {
    return avatarGroup;
  }

  public void setAvatarGroup(GameImage avatarGroup1) {
    this.avatarGroup = avatarGroup1;
  }

  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    if (obj instanceof User) {
      User user = (User) obj;
      if (user.getName().equals(name)) {
        return true;
      }
    }
    return false;
  }
}
